import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_IDM_USER: AppRouteRecordRaw = {
  path: '/deco-idm-user',
  name: 'DecoIdmUser',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '用户中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-idm-user-employee',
      name: 'DecoIdmUserEmployee',
      component: () => import('@/views/deco/idm/user/employee/list/index.vue'),
      meta: {
        locale: '员工管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-idm-user-worker',
      name: 'DecoIdmUserWorker',
      component: () => import('@/views/deco/idm/user/worker/list/index.vue'),
      meta: {
        locale: '工人管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-idm-user-setting',
      name: 'DecoIdmUserSetting',
      component: () => import('@/views/deco/idm/user/setting/list/index.vue'),
      meta: {
        locale: '个人设置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_IDM_USER;
